﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PreeRegisterModel
{
    /// <summary>
    /// 更新排班请求类
    /// </summary>
    public class WorkUpdateRequestModel
    {
        /// <summary>
        /// 头信息
        /// </summary>
        public Head head { get; set; }
        /// <summary>
        /// 内容信息
        /// </summary>
        public WorkUpdateModel body { get; set; }
    }

    /// <summary>
    /// 更新排班请求内容类
    /// </summary>
    public class WorkUpdateModel
    {
        /// <summary>
        /// 检索类型 1、指定范围同步排班&号源  2、指定ID同步排班&号源
        /// </summary>
        public string optype { get; set; }
        /// <summary>
        /// 医院ID
        /// </summary>
        public string hospid { get; set; }
        /// <summary>
        /// 科室ID
        /// </summary>
        public string deptid { get; set; }
        /// <summary>
        /// 医生ID
        /// </summary>
        public string docid { get; set; }
        /// <summary>
        /// 请求同步数据的日期
        /// </summary>
        public string dates { get; set; }
        /// <summary>
        /// 排班ID,多个时以逗号分隔
        /// </summary>
        public string ids { get; set; }

        /// <summary>
        /// 天数 获取HIS原始报文时必传 不传默认为9
        /// </summary>
        public string synday { get; set; }
    }

    /// <summary>
    /// 更新排班返回类
    /// </summary>
    public class WorkUpdateResponseModel
    {
        /// <summary>
        /// 头信息
        /// </summary>
        public Head head { get; set; }
        /// <summary>
        /// 内容信息
        /// </summary>
        public WorkUpdateBodyModel body { get; set; }
    }

    /// <summary>
    /// 内容类
    /// </summary>
    public class WorkUpdateBodyModel
    {
        /// <summary>
        /// 医院ID
        /// </summary>
        public string hospid { get; set; }
        /// <summary>
        /// 接入类型 0序号预约  1分时预约
        /// </summary>
        public string atype { get; set; }
        /// <summary>
        /// 科室ID
        /// </summary>
        public string deptid { get; set; }
        /// <summary>
        /// 科室名称
        /// </summary>
        public string deptname { get; set; }
        /// <summary>
        /// 排班信息
        /// </summary>
        public List<Work> works { get; set; }
    }

    /// <summary>
    /// 排班类
    /// </summary>
    public class Work
    {
        /// <summary>
        /// 医生ID
        /// </summary>
        public string docid { get; set; }

        /// <summary>
        /// 医生姓名
        /// </summary>
        public string docname { get; set; }
        /// <summary>
        /// 门诊排班标识
        /// </summary>
        public string wid { get; set; }
        /// <summary>
        /// 出诊日期 (格式：yyyy-MM-dd)
        /// </summary>
        public string date { get; set; }
        /// <summary>
        /// 最大预约数(平台最大可预约数)
        /// </summary>
        public string mcount { get; set; }
        /// <summary>
        /// 总数（医院总的放号量，包括门诊的放号量）
        /// </summary>
        public string tcount { get; set; }
        /// <summary>
        /// 剩余可预约数
        /// </summary>
        public string acount { get; set; }
        /// <summary>
        /// 时间段代码
        /// </summary>
        public string pcode { get; set; }
        /// <summary>
        /// 开始时间 （格式：HH:mm）
        /// </summary>
        public string stime { get; set; }
        /// <summary>
        /// 结束时间 （格式：HH:mm）
        /// </summary>
        public string etime { get; set; }
        /// <summary>
        /// 挂号类别ID
        /// </summary>
        public string rankid { get; set; }
        /// <summary>
        /// 挂号类别名称
        /// </summary>
        public string wrank { get; set; }
        /// <summary>
        /// 挂号价格
        /// </summary>
        public string price { get; set; }
        /// <summary>
        /// 诊疗费用
        /// </summary>
        public string ofee { get; set; }
        /// <summary>
        /// 就诊地点
        /// </summary>
        public string addr { get; set; }
        /// <summary>
        /// 是否停诊 0：未停诊 1：已停诊
        /// </summary>
        public string endtreat { get; set; }
        /// <summary>
        /// 院区代码：1.总院  2.和平分院  3.胜利分院  4.名医门诊部  
        /// </summary>
        public string hoscode { get; set; }
        /// <summary>
        /// 附加费
        /// </summary>
        public string price2 { get; set; }

        /// <summary>
        /// 1、	指定医生的排班 2、	按照职称进行的排班
        /// </summary>
        public string wtype { get; set; }
        /// <summary>
        /// 号源信息
        /// </summary>
        public List<WorkUpdateDetail> no { get; set; }
    }

    /// <summary>
    /// 号源类
    /// </summary>
    public class WorkUpdateDetail
    {
        /// <summary>
        /// 号源序号
        /// </summary>
        public string id { get; set; }
        /// <summary>
        /// 挂号序号
        /// </summary>
        public string inum { get; set; }
        /// <summary>
        /// 预约时间点(格式:HH:mm)
        /// </summary>
        public string time { get; set; }
        /// <summary>
        /// 预约状态：0未预约，1已预约
        /// </summary>
        public string state { get; set; }

        /// <summary>
        /// 预约时间段(格式:HH:mm-HH:mm)
        /// </summary>
        public string period { get; set; }
    }
}
